package com.yeskery.nut.extend.s3;

import software.amazon.awssdk.services.s3.S3Configuration;

/**
 * R2 S3 插件
 * @author sprout
 * @version 1.0
 * 2025-05-14 14:27
 */
public class R2S3Plugin extends AwsS3Plugin {

    /**
     * 构建R2 S3 插件
     * @param accessKey 访问key
     * @param secretKey 访问密钥
     * @param accountId 账户id
     */
    public R2S3Plugin(String accessKey, String secretKey, String accountId) {
        super(accessKey, secretKey, String.format("https://%s.r2.cloudflarestorage.com", accountId), "auto",
                S3Configuration.builder().pathStyleAccessEnabled(true).build());
    }
}
